<?
$rewrite = array(
     array(
        'RULE' => '#^/events/([\w\d_]+)?.#',
        'PATH' => '/events/index.php',
        'COND' => '?SECTION=$1'
    ),
    array(
        'RULE' => '#^/events/([\w\d_]+)/([\w\d_]+)?.#',
        'PATH' => '/events/index.php',
        'COND' => '?SECTION=$1&ELEMENT=$2'
    ),
);